package edu.udel.mboch.towerdefense;

public class PlayerSpawnMove implements TDMove
{
	private static final long serialVersionUID = -5592628322375121838L;
	private Mob mob;
	
	public PlayerSpawnMove(Mob mob)
	{
		this.mob = mob;
	}
	
	public Mob getMob()
	{
		return mob;
	}
	
	public boolean isValid(TDState state)
	{
		return state.getGrid().isValid(mob);
	}

	public void make(TDState state)
	{
		state.getGrid().placeMob(mob);
	}

}
